package booklist;

public class Page {
    private int pageSize=5;
    private int totalCount;
    private int curPage;
    private int totalPages=1;
    private int startpage=0;
    
    
    public Page(int curPage,int totalPages){
    	this.curPage=curPage;
    	this.totalPages=totalPages;
    }
	public int getPageSize() {
		return pageSize;
	}
	public int getTotalCount() {
		return totalCount;
	}
	public int getCurPage() {
		return curPage;
	}
	public int getTotalPages() {
		
		return totalPages;
	}
	public int getStartpage() {
		startpage=((curPage-1)*pageSize);
		return startpage;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}
	public void setCurPage(int curPage) {
		this.curPage = curPage;
	}
	public void setTotalPages(int totalPages) {
		this.totalPages = totalPages;
	}
	public void setStartpage(int startpage) {
		this.startpage = startpage;
	}
    
}

